package com.weina.service;

import com.weina.entity.Employee;
import com.weina.vo.EmployeeVo;

import java.util.List;

public interface EmployeeService {
    Employee login(String loginName,String loginPwd);

    //按照角色id查询该角色下的员工数量
    Integer getEmployeeCountByRoleId(Integer id);

    //查询用户列表
    List<Employee> getAllEmployee(EmployeeVo employeeVo);

    //添加用户
    int addEmployee(Employee employee);

    //修改用户
    int updateEmploye(Employee employee);

    //根据id删除用户
    int deleteEmployeeById(Integer id);

    //重置密码方法
    int resetPwd(int id);

    //分配角色方法
    boolean saveEmployeeRole(String roleIds, Integer empId);
}
